package com.zhuangyuan.cloud.core.models;

import java.io.Serializable;
import java.util.List;
import java.util.UUID;

/**
 * Created by 10191042 on 2019-11-19.
 */
public class NavModel implements Serializable {
    private String id;
    private String name;
    private String url;
    private boolean isGroup;
    private List<String> roles;

    public NavModel(boolean isGroup,String name,String url){
        this.name = name;
        this.url = url;
        this.isGroup = isGroup;
        id = "nav_"+UUID.randomUUID().toString();
    }
    public String getId(){
        return id;
    }
    public String getName() {
        return name;
    }

    public String getUrl() {
        return url;
    }

    public boolean getIsGroup() {
        return isGroup;
    }

    public List<String> getRoles() {
        return roles;
    }

    public void setRoles(List<String> roles) {
        this.roles = roles;
    }
}
